FROM python:3.9-slim
WORKDIR /app
COPY . .
# 更换为阿里云PyPI镜像，加速下载
RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ \
    && pip install --no-cache-dir flask==2.0.1 pymysql==1.0.2 werkzeug==2.0.3
CMD ["python", "app.py"]
